@import '../../../core/index.less';

.ori-reselect2-root {
    display: inline-block;
    vertical-align: middle;
    width: 340 / @remScale;
    min-height: 42 / @remScale;
    position: relative;

    .wrapper {
        padding: 5 / @remScale;
        border: 1 / @remScale solid @borderColor;
        border-radius: 4 / @remScale;
        position: relative;
        background: @white;
        &:hover {
            border: 1 / @remScale solid @border-hover-color;
        }
        &.focus {
            border: 1 / @remScale solid @border-hover-color;
        }
        .desc {
            font-size: 12/@remScale;
            color: #999999;
        }
    }

    &.focus-style {
        // box-shadow: 0 0 0 1px @mainColor;
        // border: 1 / @remScale solid @mainColor;
        // border: none;
    }
    .input-wrapper {
        display: inline-block;

        .input {
            padding: 0;
            height: 100%;
            &::-webkit-input-placeholder {
                color: @pinkish-darken-gray;
                font-weight: 300;
            }
        }

        .sizer {
            position: absolute;
            visibility: hidden;
            overflow-x: scroll;
        }
    }

    .options {
        width: 100%;
        height: auto;
        position: absolute;
        top: 42 / @remScale;
        left: 0;
        margin: 0;
        padding: 0;
        border-left: 1 / @remScale solid @borderColor;
        border-right: 1 / @remScale solid @borderColor;
        border-bottom: 1 / @remScale solid @borderColor;
        background: white;

        .option {
            height: 32 / @remScale;
            line-height: 32 / @remScale;
            padding: 0 5 / @remScale;

            &.is-focus {
                // background: @darkGreyBgColor;
            }
        }
    }
}
